package Day08;

import java.util.Scanner;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-09-20
 * Time: 8:42
 * To BE A Better Person-2020-3-2
 */
public class TestDemo2 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int max=Math.max(a,b);
        while(max%a!=0 || max%b!=0){
            max++;
        }
        System.out.println(max);
    }
}
